// Copyright (c) 2007 Robin Boerdijk. All rights reserved.
//
// This software is licensed under the terms of the Microsoft Reciprocal License as described 
// in the file LICENSE.txt, which you should have received as part of this distribution. The 
// license terms are also available at http://www.opensource.org/licenses/ms-rl.html.

#ifndef wtk_MenuItem_h_included
#define wtk_MenuItem_h_included

#include <windows.h>
#include <string>

#pragma warning (disable: 4355) // Prevent bogus warning C4355: 'this' : used in base member initializer list

namespace wtk
{
	class Menu;

	class MenuItem
	{
	public:

		std::wstring title;

		enum Separation { Separate, NoSeparation };

		MenuItem(Menu *ownerMenu, const std::wstring &title, Separation separation);

	protected:

		friend class Menu;

		virtual HMENU GetSubMenuHandle() = 0;
	};
}

#endif